package com.whfc.ms.api.fse.service.impl;

import com.whfc.common.result.PageData;
import com.whfc.fse.dto.FseCraneRecordDTO;
import com.whfc.fse.service.FseRecordService;
import com.whfc.ms.api.fse.service.MsFseCraneRecordService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @DESCRIPTION
 * @AUTHOR GuoDong_Sun
 * @DATE 2020/4/9
 */
@Service
public class MsFseCraneRecordServiceImpl implements MsFseCraneRecordService {

    @DubboReference(interfaceClass = FseRecordService.class, version = "1.0.0")
    private FseRecordService fseCraneRecordService;

    @Override
    public PageData<FseCraneRecordDTO> list(Integer deptId, Integer pageNum, Integer pageSize, Date startTime, Date endTime, String keyword) {
        return fseCraneRecordService.craneRecordList(deptId, pageNum, pageSize, startTime, endTime, keyword);
    }
}
